package com.xiaoqi.springboot.controller;

import com.xiaoqi.springboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author Rookie Coder
 * @Description
 * @Date
 **/
@Controller
@RequestMapping("/user")
public class UsercController {

    @Autowired
    private UserService userService;

    @RequestMapping("/SbAndMB")
    @ResponseBody
    public  Object returnJson(Integer id){
        return userService.selectUserById(id);
    }

}
